import React from 'react';
import { HR_TEAM_LIST, HrMoudle } from '../Hr'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import * as teamAction from '../../../actions/team.action'
import { clearAtList, fetchAtList } from '../../../actions/home.action'
import { fetchProfile, updateAvatar, fetchAddresses } from '../../../actions/app.action'
import { fetchRole, delStaff, createDocument, updateOnboardingFlowStatus } from '../../../actions/onboarding.hr.action'
import { fileUpload } from '../../../actions/file.action'
import * as userAction from '../../../actions/user.action'

export default connect(({app}) => ({app}), dispatch => ({actions: bindActionCreators({...teamAction, ...userAction, clearAtList, fetchAtList, updateAvatar, fetchAddresses, createDocument, fileUpload, updateOnboardingFlowStatus, delStaff, fetchRole, fetchProfile }, dispatch)}))(HrMoudle(HR_TEAM_LIST));
